index.js ➔ run   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
import * as core from '@actions/core';
2
import { exec } from '@actions/exec';
3
import Installer from './Installer';
4
5
async function run() {
6
    try {
7
        const redisVersion = core.getInput('redis-version');
8
9
        const intaller = new Installer({ exec });
10
11
        await intaller.install({ redisVersion, platform: process.platform });
12
    } catch (error) {
13
        console.error(error);
14
        core.setFailed(error.message);
15
    }
16
}
17
18
run();
19